-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drivers: frequency: add support for ADMFM2000 #2416
Conversation
95003f6
to
517f9d5
Compare
v2:
|
517f9d5
to
d350712
Compare
v3:
|
There seems to be an error regarding the documentation:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please split the code in multiple commits: one for driver, one for iio driver, one for documentation. there are multiple recent examples for this.
|
||
|
||
int32_t admfm2000_get_gain(struct admfm2000_dev *dev, uint8_t chan, | ||
int32_t *gain) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you store in the gain
variable? doesn't seem to be a gain, rather a raw value after reading gpios.
d350712
to
1274953
Compare
v4:
|
14d31d4
to
6d9ecac
Compare
v5:
|
6d9ecac
to
18042cb
Compare
if (!admfm2000_dev) | ||
return -EINVAL; | ||
|
||
ret = admfm2000_get_gain(admfm2000_dev, channel->ch_num, &gain); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ups, was this tested?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not after the name change, but it's fixed now
The ADMFM2000 is a dual-channel microwave downconverter, with input RF and local oscillator (LO) frequency ranges covering 5 to 32 GHz, with an output intermediate frequency (IF) frequency range from 0.5 GHz to 8 GHz. Added no-os driver. Signed-off-by: Ramona Alexandra Nechita <[email protected]>
Added IIO support for the ADMFM2000 driver. Signed-off-by: Ramona Alexandra Nechita <[email protected]>
Added README and subsequent doc files for ADMFM2000 driver. Signed-off-by: Ramona Alexandra Nechita <[email protected]>
18042cb
to
5c51cc2
Compare
v6:
|
The ADMFM2000 is a dual-channel microwave downconverter, with input RF and local oscillator (LO) frequency ranges covering 5 GHz to 32 GHz, with an output intermediate frequency (IF) frequency range from 0.5 GHz to 8 GHz. Added driver and iio_support.
Pull Request Description
Please replace this with a detailed description and motivation of the changes.
You can tick the checkboxes below with an 'x' between square brackets or just check them after publishing the PR.
If this PR contains a breaking change, list dependent PRs and try to push all related PRs at the same time.
PR Type
PR Checklist